package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Chuangxinchanpin;
import ystp.model.ChuangxinchanpinExample;

public interface ChuangxinchanpinMapper {
    int countByExample(ChuangxinchanpinExample example);

    int deleteByExample(ChuangxinchanpinExample example);

    int deleteByPrimaryKey(String id);

    int insert(Chuangxinchanpin record);

    int insertSelective(Chuangxinchanpin record);

    List<Chuangxinchanpin> selectByExample(ChuangxinchanpinExample example);

    Chuangxinchanpin selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Chuangxinchanpin record, @Param("example") ChuangxinchanpinExample example);

    int updateByExample(@Param("record") Chuangxinchanpin record, @Param("example") ChuangxinchanpinExample example);

    int updateByPrimaryKeySelective(Chuangxinchanpin record);

    int updateByPrimaryKey(Chuangxinchanpin record);

    List<Map<String,Object>> findChuangxinPagingByXiangmuId(@Param("xiangmuid") String ppxiangmuId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countChuangxinByXiangmuId(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String,Object>> findChuangxinBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId,@Param("userid") String ppuserId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countChuangxinBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId,@Param("userid") String ppuserId);
}